< previous page page_293 next page >

Page 293
z0313-01.gif
Figure 10.12
The initiator and generator for a Gosper snowflake.
e10a6a0a59f035e870d90cca05b85fce.gif
4                       ' Number of points in the initiator.
230, 54                 ' Initiator point 1.
54, 54                  ' Initiator point 2.
54, 230                 ' Initiator point 3.
230, 230                ' Initiator point 4.
0.4472136               ' ScaleFactor.
3                       ' Number of turns in the generator.
26.565051               ' Generator turn 1.
-90                     ' Generator turn 2.
90                      ' Generator turn 3.
The Ch10 directory on the CD-ROM contains several snowflake definition files that you can load using program Flake2. When you load a new .sno file, be sure you run the program with a small level of recursion until you know how complex the snowflake will be. In one test on a 133MHz Pentium, a level-four von Koch snowflake with the 18-segment generator described in file Koch18.sno took more 52 seconds to draw.
z0313-02.gif
Figure 10.13
Depth one, two, and three Gosper snowflakes.

 
< previous page page_293 next page >